import { createApp } from 'vue'
import './style.css'
import router from './router/index.ts'; // 引入路由器
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import { createPinia } from 'pinia';

import messageService from './utils/messageService'; // 确保路径正确


const app = createApp(App)
const pinia = createPinia();
app.provide('message', messageService);
app.use(ElementPlus, { size: 'default', zIndex: 2000 })
app.use(router)
app.use(pinia);
app.mount('#app')
